//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat 
             History:        2023/3/24
************************************************************/
    

#include <stdio.h>

void turn(int arr[3][3])
{
    int i = 0;
    for(i = 0; i < 3; i++)
    {
        int j = 0;
        for(j = 0; j < i; j++)
        {
            int tmp = arr[j][i];
            arr[j][i] = arr[i][j];
            arr[i][j] = tmp;
        }
    }
}

int main()
{
    int arr[3][3] = {0};
    int i = 0;
    for(i = 0; i < 3; i++)
    {
        int j = 0;
        for(j = 0; j < 3; j++)
        {
            scanf("%d",&arr[i][j]);
        }
    }
    turn(arr);
    for(i = 0; i < 3; i++)
    {
        int j = 0;
        for(j = 0; j < 3; j++)
        {
            printf("%d ",arr[i][j]);
        }
        printf("\n");
    }
    return 0;

}
